export type FinanceStatus = 'good' | 'normal' | 'bad';

export interface FinanceHistory {
  year: string;
  revenue: number;
  profit: number;
  assets: number;
  liabilities: number;
}

export interface FinanceRatio {
  name: string;
  value: number;
  benchmark: number;
  status: FinanceStatus;
}

export interface FinanceData {
  // 基本财务指标
  revenue: number;
  profit: number;
  assets: number;
  liabilities: number;
  equityRatio: number;
  
  // 同比增长
  revenueGrowth: number;
  profitGrowth: number;
  
  // 历史数据
  history: FinanceHistory[];
  
  // 财务比率
  ratios: FinanceRatio[];
}

export interface FinanceQuery {
  enterpriseId: string;
  year?: string;
  type?: string;
}

export interface FinanceAnalysisData {
  basic: FinanceData;
  trend: FinanceHistory[];
  ratios: FinanceRatio[];
} 